@extends('layouts.admin')
@section('content')
    <!--面包屑导航 开始-->
    <div class="crumb_warp">
        <!--<i class="fa fa-bell"></i> 欢迎使用登陆网站后台，建站的首选工具。-->
        <i class="fa fa-home"></i> <a href="{{url('Admin/info')}}">首页</a> &raquo; <a href="{{url('Admin/navigator')}}">自定义导航</a> &raquo; 修改栏目
    </div>
    <!--面包屑导航 结束-->

	<!--结果集标题与导航组件 开始-->
	<div class="result_wrap">
        <div class="result_title">
            <h3>快捷操作</h3>
            @if(count($errors)>0)
            <div class="mark">
                @foreach($errors as $err)
                <p>{{$err}}</p>
                @endforeach
            </div>
            @endif
        </div>
        <div class="result_content">
            <div class="short_wrap">
                <a href="{{url('Admin/navigator')}}"><i class="fa fa-adjust"></i>导航列表</a>
            </div>
        </div>
    </div>
    <!--结果集标题与导航组件 结束-->
    
    <div class="result_wrap">
        <form action="{{url('Admin/navigator/'.$data->nav_id)}}" method="post" >
            {{csrf_field()}}
            <input type="hidden" name="_method" value="put">
            <table class="add_tab">
                <tbody>
                    <tr>
                        <th>栏目名称：</th>
                        <td>
                            <input type="text" name="nav_name" value="{{$data->nav_name}}">
                            <span><i class="fa fa-exclamation-circle yellow"></i>这里是默认长度</span>
                        </td>
                    </tr>
                    <tr>
                        <th>所属目录</th>
                        <td>
                            <select name="parent_id" id="">
                                @foreach($parent as $v)
                                    <option
                                            @if($v->nav_id == $data->parent_id) selected="true" @endif
                                            value="{{$v->nav_id}}"> @if($data->parent_id==0) {{'顶级菜单'}} @else {{$v->nav_name}} @endif </option>
                                @endforeach
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th>栏目标题：</th>
                        <td>
                            <input type="text" name="nav_title" value="{{$data->nav_title}}" class="lg">
                            <span><i class="fa fa-exclamation-circle yellow"></i>这里是默认长度</span>
                        </td>
                    </tr>
                    <tr>
                        <th>导航链接：</th>
                        <td>
                            <input type="text" name="nav_url" value="{{$data->nav_url}}">
                            <span><i class="fa fa-exclamation-circle yellow"></i>这里是默认长度</span>
                        </td>
                    </tr>
                    <tr>
                        <th><i class="require">*</i>排序：</th>
                        <td>
                            <input type="text" value="{{$data->sort}}" class="sm" name="sort">
                            <span><i class="fa fa-exclamation-circle yellow"></i>这里是短文本长度</span>
                        </td>
                    </tr>
                    <tr>
                        <th>表錢描述</th>
                        <td>
                            <textarea name="nav_desc" id="" cols="30" rows="10">{{$data->nav_desc}}</textarea>
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <input type="submit" value="提交">
                            <input type="button" class="back" onclick="history.go(-1)" value="返回">
                        </td>
                    </tr>
                </tbody>
            </table>

        </form>

    </div>

    <script>


    </script>
@endsection
